import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Stack;

public class RandomDemo {
	public static void main(String[] args) {
		int i= 1>3?4:5;
	}

	public static String getRandomPW() {
		Random ran1 = new Random();
		int length = (int) (ran1.nextFloat() * 20 + 1);
		String pwChar = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
		String password = "";
		Random rdm = new Random(System.currentTimeMillis());
		for (int i = 0; i < length; i++) {
			int index = rdm.nextInt() % pwChar.length();
			if (index < 0) {
				index = 0 - index;
			}
			password = password + pwChar.charAt(index);
		}
		return password;
	}
}
